home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / plnk081.zip / pilot-link.0.8.1 / Java / Pdapilot / expense / Database.java < prev    next >
Text File  |  1997-08-08  |  1KB  |  25 lines

  1.  
  2. package Pdapilot.expense;
  3.  
  4. public class Database extends Pdapilot.Database {
  5.     public Pdapilot.AppBlock newAppBlock() { return new Pdapilot.expense.AppBlock(); }
  6.     public Pdapilot.AppBlock newAppBlock(byte[] contents) { return new Pdapilot.expense.AppBlock(contents); }
  7.     
  8.     public Pdapilot.Record newRecord() { return new Pdapilot.expense.Record(); }
  9.     public Pdapilot.Record newRecord(byte[] contents, Pdapilot.RecordID id, int index, int attr, int cat) 
  10.         { return new Pdapilot.expense.Record(contents, id, index, attr, cat); }
  11.  
  12.     public Pdapilot.Pref newPref() { return new Pdapilot.expense.Pref(); }
  13.     public Pdapilot.Pref newPref(byte[] contents, Pdapilot.Char4 creator, int id, int version, boolean backup)
  14.     { 
  15.         if (id == 1) 
  16.             return new Pdapilot.expense.Pref(contents, creator, id, version, backup);
  17.         else
  18.             return new Pdapilot.Pref(contents, creator, id, version, backup);
  19.     }
  20.     
  21.     public Pdapilot.Char4 creator() { return new Pdapilot.Char4("exps"); }
  22.     public String dbname() { return "ExpenseDB"; }
  23.     
  24. }
  25.